import java.io.*;
import java.net.*;
public class Test_Client //extends Thread{
{

	
	public void run(){
		int b;
		Socket s = null;
		PrintWriter out= null;
		BufferedInputStream in = null;
		BufferedOutputStream f = null;
		int j =0;
		try {
			int port = 58008;
			s = new Socket ("localhost", port);
			System.out.println("socket");
			
			out = new PrintWriter(new BufferedOutputStream(s.getOutputStream()));
			in = new BufferedInputStream(s.getInputStream());
			
//			in.read();
//			System.out.println(in.read());
			String fuck = "Hallo Du!";
			out.write("hallodudummesstueckscheisse");
			System.out.println("flush");
			out.flush();
			
		}
		catch (Exception e){System.err.println(e);}
		finally {
			try{
				if (out != null) out.close();
				if (in != null) in.close();
				if (s != null) s.close();
			}
			catch (Exception e){}
		}
	}
	
	
}
